﻿using System.Drawing;
using System.Windows.Forms;

namespace Marmat.Forms
{
    public partial class TabFormPanel
    {
        protected void ResetPadding()
        {
            this.Padding = new Padding(0, 30, 0, 0);
        }

        protected bool ShouldSerializePadding()
        {
            return !(this.Padding.Left == 0 && this.Padding.Top == 30 && this.Padding.Right == 0 && this.Padding.Bottom == 0);
        }

        protected void ResetArcRadius()
        {
            this.ArcRadius = new ArcRadius(0, 0, 0, 0);
        }

        protected bool ShouldSerializeArcRadius()
        {
            return !(this._BackColor == Color.Empty);
            return !(this.ArcRadius.LeftTop == 0 && this.ArcRadius.LeftBottom == 0 && this.ArcRadius.RightTop == 0 && this.ArcRadius.RightBottom == 0);
        }


        // Public Overrides Sub ResetBackColor()
        // Me.BackColor = Color.Empty
        // End Sub
        // Protected Function ShouldSerializeBackColor() As Boolean
        // Return Not (Me._BackColor = Color.Empty)
        // End Function

        public void ResetNormalForeColor()
        {
            this.NormalForeColor = Color.Empty;
        }

        protected bool ShouldSerializeNormalForeColor()
        {
            return !(this._NormalForeColor == Color.Empty);
        }

        protected void ResetTopColor()
        {
            this.TopColor = Color.Empty;
        }

        protected bool ShouldSerializeTopColor()
        {
            return !(this._TopColor == Color.Empty);
        }

        protected void ResetBottomColor()
        {
            this.BottomColor = Color.Empty;
        }

        protected bool ShouldSerializeBottomColor()
        {
            return !(this._BottomColor == Color.Empty);
        }

        protected void ResetSelectedTopColor()
        {
            this.SelectedTopColor = Color.Empty;
        }

        protected bool ShouldSerializeSelectedTopColor()
        {
            return !(this._SelectedTopColor == Color.Empty);
        }

        protected void ResetSelectedBottomColor()
        {
            this.SelectedBottomColor = Color.Empty;
        }

        protected bool ShouldSerializeSelectedBottomColor()
        {
            return !(this._SelectedBottomColor == Color.Empty);
        }

        protected void ResetSelectedFontColor()
        {
            this.SelectedFontColor = Color.Empty;
        }

        protected bool ShouldSerializeSelectedFontColor()
        {
            return !(this._SelectedFontColor == Color.Empty);
        }

        protected void ResetSelectedForeColor()
        {
            this.SelectedForeColor = Color.Empty;
        }

        protected bool ShouldSerializeSelectedForeColor()
        {
            return !(this._SelectedForeColor == Color.Empty);
        }

        protected void ResetMouseEnterForeColor()
        {
            this.MouseEnterForeColor = Color.Empty;
        }

        protected bool ShouldSerializeMouseEnterForeColor()
        {
            return !(this._MouseEnterForeColor == Color.Empty);
        }

        protected void ResetMouseEnterTopColor()
        {
            this.MouseEnterTopColor = Color.Empty;
        }

        protected bool ShouldSerializeMouseEnterTopColor()
        {
            return !(this._MouseEnterTopColor == Color.Empty);
        }

        protected void ResetMouseEnterBottomColor()
        {
            this.MouseEnterBottomColor = Color.Empty;
        }

        protected bool ShouldSerializeMouseEnterBottomColor()
        {
            return !(this._MouseEnterBottomColor == Color.Empty);
        }
    }
}